$(function () {
    var url = config.baseUrl;

    $.ajax({
        type:"get",
        url:url+"goods/queryHome.json",
        dataType:"json",
        success:function (data) {
            var dataList = data.data.list[0];
            var temp = template('goods-template',dataList);
            $("#goods-list").html(temp);
        }
    })

})